void npc(Player @player, NPC @npc) {
	int state = npc.getState();
    int type = npc.getSelected();
	if(state == 0){
		npc.addText("#r#eHey there!#k I am #bSpinel, the World Tour Guide!#k Choose the place you wanna go to. #l\r\n#L0#Henesys#l\r\n#L1#Ellinia#l\r\n#L2#Lith Harbour#l\r\n#L3#Perion#l\r\n#L4#Kerning City#l\r\n#L5#Amoria#l\r\n#L6#Leafre#l\r\n#L7#Ludibrium#l\r\n#L8#Orbis#l\r\n#L9#Herb Town#l\r\n#L10#Mu Lung#l\r\n#L11#Ariant#l\r\n#L12#Sleepywood#l\r\n#L13#Aquarium#l\r\n#L14#Phantom Forest: Haunted House#l\r\n#L15#New Leaf City - Town Center#l\r\n#L16#Korean Folk Town#l\r\n#L17#Omega Sector#l\r\n#L18#Singapore: CBD#l\r\n#L19#Singapore: Boat Quay Town#l\r\n#L20#Nautilus Port#l\r\n#L21#Ereve#l\r\n#L22#Showa Town#l");
		npc.sendSimple();
	}
	if(state == 1){
			if(type == 0){ // Henesys
			player.changeMap(100000000);
npc.end();
			}
                        else if(type == 1){ // Ellinia
			player.changeMap(101000000);
npc.end();
			}
                        else if(type == 2){ // Lith Harbour
                        player.changeMap(104000000);
npc.end();
			}
			else if(type == 3){ // Perion
				player.changeMap(102000000);
npc.end();
			}
			else if(type == 4){ // Kerning City
				player.changeMap(103000000);
npc.end();
			}
			else if(type == 5){ // Amoria
				player.changeMap(680000000);
npc.end();
			}
			else if(type == 6){ // Leafre
				player.changeMap(240000000);
npc.end();
			}
			else if(type == 7){ // Ludibrium
				player.changeMap(220000000);
npc.end();
			}
			else if(type == 8){ // Orbis
				player.changeMap(200000000);
npc.end();
			}
			else if(type == 9){ // Herb Town
				player.changeMap(251000000);
npc.end();
			}
			else if(type == 10){ // Mu Lung
				player.changeMap(250000000);
npc.end();	
		    }
			else if(type == 11){ // Ariant
				player.changeMap(260000000);
npc.end();
		    }
			else if(type == 12){ // Dungeon: Sleepywood
				player.changeMap(105040300);
npc.end();
		    }
			else if(type == 13){ // Aquarium: Aquarium
				player.changeMap(230000000);
npc.end();
		    }
			else if(type == 14){ // Phantom Forest: Haunted House
				player.changeMap(682000000);
npc.end();
		    }
			else if(type == 15){ // New Leaf City - Town Center
				player.changeMap(600000000);
npc.end();
		    }
			else if(type == 16){ // Korean Folk Town: Korean Folk Town
				player.changeMap(222000000);
npc.end();
		    }
			else if(type == 17){ // Omega Sector: Omega Sector
				player.changeMap(221000000);
npc.end();
		    }
		  else if(type == 18){ // Singapore: CBD
              			player.changeMap(540000000);
npc.end();
		    }
		  else if(type == 19){ // Singapore: Boat Quay Town
				player.changeMap(541000000);
npc.end();
		    }
		  else if(type == 20){ // Nautilus Port
				player.changeMap(120000000);
npc.end();
}
                  else if(type == 21){ // Ereve
player.changeMap(130000000);
npc.end();
}
else if(type == 22){ // Showa town
player.changeMap(801000000);
npc.end();
}
}
}
